using UnityEngine;

namespace RGuang.PlathformCtrl
{

    public class ReadyScreen : MonoBehaviour
    {
        [SerializeField] VoidEventChannel levelStartedEventChannel;
        [SerializeField] AudioClip startVoice;

        void LevelStart()
        {
            levelStartedEventChannel.Broadcast();
            GetComponent<Canvas>().enabled = false;
            GetComponent<Animator>().enabled = false;
        }

        void PlayStartVioce()
        {
            SoundEffectPlayer.AudioSource.PlayOneShot(startVoice);
        }
    }
}

